<script type="text/javascript">
	try{ace.settings.loadState('main-container')}catch(e){}
</script>
<div id="sidebar" class="sidebar responsive ace-save-state">
	<script type="text/javascript">
		try{ace.settings.loadState('sidebar')}catch(e){}
	</script>

	<div class="sidebar-shortcuts" id="sidebar-shortcuts">
		<div class="sidebar-shortcuts-large" id="sidebar-shortcuts-large">
			<button class="btn btn-success">
				<i class="ace-icon fa fa-signal"></i>
			</button>
			<button class="btn btn-info">
				<i class="ace-icon fa fa-pencil"></i>
			</button>
			<button class="btn btn-warning">
				<i class="ace-icon fa fa-users"></i>
			</button>
			<button class="btn btn-danger">
				<i class="ace-icon fa fa-cogs"></i>
			</button>
		</div>

		<div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
			<span class="btn btn-success"></span>
			<span class="btn btn-info"></span>
			<span class="btn btn-warning"></span>
			<span class="btn btn-danger"></span>
		</div>
	</div><!-- /.sidebar-shortcuts -->

	<ul class="nav nav-list">
		<li class="" th:classappend="${nav eq ''} ? 'active' : ''">
			<a th:href="@{/index}" href="">
				<i class="menu-icon fa fa-tachometer"></i>
				<span class="menu-text" > 首页 </span>
			</a>
			<b class="arrow"></b>
		</li>

		<li class="" shiro:hasPermission="/sys/sysResources/getall"
			th:classappend="${nav eq '资源管理' || nav eq '用户管理' || nav eq '角色管理'} ? 'active open' : ''">
			<a href="#" class="dropdown-toggle">
				<i class="menu-icon fa fa-list"></i>
				<span class="menu-text"> 后台管理 </span>
				<b class="arrow fa fa-angle-down"></b>
			</a>
			<b class="arrow"></b>

			<ul class="submenu">
				<li class="hidden-480 " th:classappend="${nav eq '资源管理'} ? 'active' : ''">
					<a shiro:hasPermission="/sys/sysResources/getall" th:href="@{/sys/sysResources/getall}">
						<i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>权限管理
					</a>
					<b class="arrow"></b>
				</li>
				<li th:classappend="${nav eq '用户管理'} ? 'active' : ''">
					<a shiro:hasPermission="/sys/sysUser/getall" th:href="@{/sys/sysUser/getall}">
						<i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>用户管理
					</a>
					<b class="arrow"></b>
				</li>
				<li th:classappend="${nav eq '角色管理'} ? 'active' : ''">
					<a shiro:hasPermission="/sys/sysRole/getall" th:href="@{/sys/sysRole/getall}">
						<i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>角色管理
					</a>
					<b class="arrow"></b>
				</li>
			</ul>
		</li>

		<li class="" shiro:hasPermission="/houseInfo/getall" th:classappend="${nav eq '房屋信息' || nav eq '房屋图像' || nav eq '房屋预售'} ? 'active open' : ''">
			<a href="#" class="dropdown-toggle">
				<i class="menu-icon fa fa-pencil-square-o"></i>
				<span class="menu-text"> 房屋信息 </span>
				<b class="arrow fa fa-angle-down"></b>
			</a>
			<b class="arrow"></b>
			
			<ul class="submenu">
				<li class="hidden-480" th:classappend="${nav eq '房屋信息'} ? 'active' : ''">
					<a shiro:hasPermission="/houseInfo/getall" th:href="@{/houseInfo/getall}">
						<i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>房屋信息
					</a>
					<b class="arrow"></b>
				</li>
				<li th:classappend="${nav eq '房屋图像'} ? 'active' : ''">
					<a shiro:hasPermission="/houseImage/getall" th:href="@{/houseImage/getall}">
						<i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>房屋图像
					</a>
					<b class="arrow"></b>
				</li>
				<li th:classappend="${nav eq '房屋预售'} ? 'active' : ''">
					<a shiro:hasPermission="/houseBooking/getall" th:href="@{/houseBooking/getall}">
						<i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>房屋预售
					</a>
					<b class="arrow"></b>
				</li>
				<li th:classappend="${nav eq '房屋租赁'} ? 'active' : ''">
					<a shiro:hasPermission="/rentingHouse/getall" th:href="@{/rentingHouse/getall}">
						<i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>房屋租赁
					</a>
					<b class="arrow"></b>
				</li>
				<li th:classappend="${nav eq '房产证管理' || nav eq '房屋状态' || nav eq '他项权利摘要'} ? 'active open' : ''">
					<a class="dropdown-toggle" shiro:hasPermission="/propertyOwnershipCertificate/getall" th:href="@{/propertyOwnershipCertificate/getall}">
						<i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>房产证管理
						<b class="arrow fa fa-angle-down"></b>
					</a>
					<b class="arrow"></b>
					
					<ul class="submenu">
						<li class="" th:classappend="${nav eq '房产证管理'} ? 'active' : ''">
							<a shiro:hasPermission="/propertyOwnershipCertificate/getall" th:href="@{/propertyOwnershipCertificate/getall}">
								<i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>房产证管理
							</a>

							<b class="arrow"></b>
						</li>
						<li class="" th:classappend="${nav eq '房屋状态'} ? 'active' : ''">
							<a shiro:hasPermission="/houseStatus/getall" th:href="@{/houseStatus/getall}">
								<i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>房屋状态
							</a>

							<b class="arrow"></b>
						</li>
						<li class="" th:classappend="${nav eq '他项权利摘要'} ? 'active' : ''">
							<a shiro:hasPermission="/otherRightDigest/getall" th:href="@{/otherRightDigest/getall}">
								<i class="menu-icon fa fa-caret-right"></i><i class="fa fa-plus" aria-hidden="true"></i>他项权利摘要
							</a>

							<b class="arrow"></b>
						</li>
					</ul>
				</li>
			</ul>
		</li>
		
		<li class="" shiro:hasPermission="/innerMail/getall" th:classappend="${nav eq '站内信管理'} ? 'active' : ''">
			<a th:href="@{/innerMail/getall}" href="">
				<i class="menu-icon fa fa-tachometer"></i>
				<span class="menu-text" > 站内信管理 </span>
			</a>
			<b class="arrow"></b>
		</li>
		
		<li class="" shiro:hasPermission="/chatRecord/getall" th:classappend="${nav eq '聊天记录'} ? 'active' : ''">
			<a th:href="@{/chatRecord/getall}" href="">
				<i class="menu-icon fa fa-tachometer"></i>
				<span class="menu-text" > 聊天记录管理 </span>
			</a>
			<b class="arrow"></b>
		</li>
	</ul><!-- /.nav-list -->

	<div class="sidebar-toggle sidebar-collapse" id="sidebar-collapse">
		<i id="sidebar-toggle-icon" class="ace-icon fa fa-angle-double-left ace-save-state" data-icon1="ace-icon fa fa-angle-double-left" data-icon2="ace-icon fa fa-angle-double-right"></i>
	</div>
</div>
